import hashlib
from django.conf import settings

def md5_string(password):
    hash = hashlib.md5(settings.DASHOPT_KEY.encode())
    hash.update(password.encode())
    return hash.hexdigest()
